<?php
/**
 * Created by PhpStorm.
 * User: moon
 * Date: 2021/6/8
 * Time: 21:04
 */

namespace app\admin\model;

use app\BaseModel;

class Order extends BaseModel
{
    protected $table = 'sh_order';

    public $rule = [
        'received_name|收货人'=>'require',
        'received_address|收货地址'=>'require',
        'received_tel|联系电话'=>'require|mobile',
        'state'=>'require|number|>:0',

    ];
    public $message = [
        'received_tel.mobile'=>'请输入有效的手机号',
        'state'=>'订单状态异常'
    ];
}
